<template>
    <div class="card df jcsa">
        <slot v-for="item in data" :row="item"></slot>
    </div>
</template>
  
<script>
export default {
    props: {
        data: {
            type: Array,
        },
    },
};
</script>
  
<style lang="less" scoped>
.card {
    margin-bottom: 50px;
}

.header {
    width: 23%;
    padding: 10px 20px;
    margin-right: 20px;
    display: flex;
    justify-content: space-around;
    background: #fff;
}

.img {
    margin-right: 15px;
    width: 70px;
    height: 70px;
}

.info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
}

.title {
    font-size: 14px;
    color: #ccc;
    white-space: nowrap;
    margin-bottom: 10px;
    font-weight: bold;
}

.count {
    align-self: center;
    font-size: 14px;
}

@media screen and (max-width: 1000px) {
    .img {
        margin-right: 15px;
        width: 40px;
        height: 40px;
    }
}

@media screen and (min-width: 1200px) {
    .header {
        width: 18%;
    }
}
</style>